// import {component} from 'vue'
// import SvgIcon from '@/components/SvgIcon/index.vue'// svg component

// // register globally
// component('svg-icon', SvgIcon)

// const req = require.context('./svg', false, /\.svg$/)
// const requireAll = requireContext => requireContext.keys().map(requireContext)
// requireAll(req)



import SvgIcon from '@/components/SvgIcon' // svg组件

const req = require.context('./svg', false, /\.svg$/)
const requireAll = requireContext => requireContext.keys().map(requireContext)
requireAll(req)

export default {
    install: (app) => {
        app.component("SvgIcon", SvgIcon)
    }
}